package edu.zhku.ttms.mapper;

import edu.zhku.ttms.domain.Ticket;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 林志强
 * @since 2021/4/18 23:18
 */
public interface TicketMapper {

    Ticket getById(Long ticketId);

//    List<Ticket> getList(String str);

    List<Ticket> getList(@Param("str") String str, @Param("policeId") Long policeId, @Param("status") Integer status);

    int insertOne(Ticket ticket);

    int updateOne(Ticket ticket);

    int removeById(Long ticketId);
}
